public class Dog extends Animal{
    private String name;
    private int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void move(){
        System.out.println("狗在四腿奔跑");
    }
    @Override
    public void makeSound() {
        System.out.println("狗发出汪汪叫声");
    }
}
